<%@ page language="java" isELIgnored="false" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@ include file="/WEB-INF/jsp/ResourceGlobal.jsp"%>
<html>

	<head>
	 	<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title>投资者报告列表</title>
		<script type="text/javascript">
			var investReportPath = '<%=context%>' +'business/investReport/';
			var todoPath = '<%=context%>' +'business/myHome/todoAndOutput/';
			var reportTimeBeg = '${searchParam.sp.reportTimeBeg}';
			var reportTimeEnd = '${searchParam.sp.reportTimeEnd}';

			var reportType = '${searchParam.sp.reportType}';
			var fileUpload = '${searchParam.sp.fileUpload}';
			//默认加载
			$(function(){
				//把访问路径传到js
				setPathPrefix(investReportPath);
				setPathPreTodo(todoPath);
				initPage(reportTimeBeg,reportTimeEnd,reportType,fileUpload);
			});
		</script>
	</head>
	
	<body class="fixed-nav">
	
	<div class="clearfix tabs">
		<ul id="myTabs" class="nav clear" role="tablist">
	        <li role="presentation" id="investNotice1" class="active"><a href="#market_opinion" role="tab" onclick="INVEST_REPORT.changeTable('1')" data-toggle="tab">公告</a></li>
	        <li role="presentation" id="investNotice2"><a href="#market_hot_prj" role="tab" onclick="INVEST_REPORT.changeTable('2')" data-toggle="tab">定期报告</a></li>
        </ul>
	</div>
	
	<div class="result-box" style="overflow: visible;" >
		<div class="clearfix form-multi-col-panel">
		<!-- 公告材料上传  -->
		<div style="display: none;" id="insertDataUploadTemp">
			<wasp:opera fun='javascirpt:void(0);' type='2' id='insertDataUpload' param=''></wasp:opera>
		</div>
		<!-- 公告材料下载  -->
		<div style="display: none;" id="insertDataDownloadTemp">
			<wasp:opera fun='javascirpt:void(0);' type='2' id='insertDataDownload' param=''></wasp:opera>
		</div>
		<!-- 公告下载  -->
		<div style="display: none;" id="insertListDownloadTemp">
			<wasp:opera fun='javascirpt:void(0);' type='2' id='insertListDownload' param=''></wasp:opera>
		</div>
		<!-- 公告上传  -->
		<div style="display: none;" id="insertListUploadTemp">
			<wasp:opera fun='javascirpt:void(0);' type='2' id='insertListUpload' param=''></wasp:opera>
		</div>
		
		<div class="form-item-group form-horizontal" role="form">
			<div class="form-item">
				<span class="form-field">产品名称</span>
				<span class="form-input">
					<input type="text" placeholder="产品名称" class="form-control" name="q-prjsname" id="q-prjsname" value="">
				</span>
			</div>
			<div class="form-item">
				<span class="form-field">报告日期</span>
				<span class="form-input">
					<input placeholder="报告日期" class="form-control" name="q-reportTime" id="q-reportTime">
				</span>
			</div>
			<div class="form-item">
				<span class="form-field">产品代码</span>
				<span class="form-input">
					<input type="text" placeholder="产品代码" class="form-control" name="q-outerId" id="q-outerId" value="">
				</span>
			</div>
			<div class="form-item" id="investNoticeDiv">
				<span class="form-field">报告类型</span>
				<span class="form-input">
					<select class="form-control use-select2" name="q-reportType" id="q-reportType">
	                   	<option value=""></option>
	                   	<c:forEach var="reportInfoVo" items="${announceList}">
								<option value="${reportInfoVo.reportId }">${reportInfoVo.reportName }</option>
						</c:forEach>
	                   </select>
				</span>
			</div>
			<div class="form-item" id="investRegularNoticeDiv" style="display:none">
				<span class="form-field">报告类型</span>
				<span class="form-input">
					<select class="form-control use-select2" name="q-reportTypeNotice" id="q-reportTypeNotice">
	                   	<option value=""></option>
	                    <c:forEach var="reportInfoVo" items="${regularList}">
								<option value="${reportInfoVo.reportId }">${reportInfoVo.reportName }</option>
						</c:forEach>
	                   </select>
				</span>
			</div>
			
			<div class="form-item">
				<span class="form-field">公告材料上传日期</span>
				<span class="form-input">
					<input placeholder="公告材料上传日期" class="form-control" name="q-dataUploadDate" id="q-dataUploadDate">
				</span>
			</div>
			
			<div class="form-item"></div>  
	        <div class="form-item"></div>  
	        <div class="form-item"></div>  
	        <div class="form-item"></div>  
		  </div>
		  	
		  	<div class="form-item-group form-horizontal">
		  		<div class="form-item max">
		          <span class="form-field">待办状态</span>
		          <span class="form-input" style="width:55%">
		            <c:forEach var="dictDto" items="${dicList}">
		            	<i class="far fa-square todoStatus" value="${dictDto.dctValue }"></i>
		            	<label>${dictDto.dctName }</label>
		            </c:forEach>
		          </span>
		        </div>
		  	</div>
		  	
			<div class="form-action">
				<button class="btn btn-primary" type="submit"  id="queryBtn"  onclick="queryByCondtion(true)"><i class="fa fa-search"></i>&nbsp;查询</button>
				<button class="btn btn-outline btn-default" id="resetBtn" type="reset" onclick = "clears()">清空</button>
			</div>
		</div>
		
		<div class="form-search-group">
			<wasp:opera fun="INVEST_REPORT.batchDownAttach('INVEST_DATA');" id="investDataDown"></wasp:opera>
			<wasp:opera fun="INVEST_REPORT.batchDownAttach('INVEST_FILE');" id="insertDownload"></wasp:opera>
		</div>
	
		<div class="jqGrid_wrapper fullscreen-wrapper">
			<table id="investReportList"></table>
			<div id="investReportListPage"></div>
		</div>
	</div>
	<script type="text/javascript" src="<%=context%>resources/modules/business/infoDisclosure/investReport/investReportList.js?r=<%=Math.random()%>"></script>
	</body>

</html>